473,396 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

reason for the output of this program

Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int a,b;
  6. clrscr();
  7. printf("Enter the vale for a");
  8. scanf("%d ",&a);
  9.  
  10. printf("Enter the value for b");
  11. scanf("%d",&b);
  12. printf("%d %d"a,b);
  13. getch();
  14. }
Sep 23 '13 #1
2 1207
Nepomuk
3,112 Expert 2GB
Hi maniteja24 and welcome to bytes.com!

So, what's your question about this code? The title doesn't tell us what you're having trouble with.
Sep 23 '13 #2
Luuk
1,047 Expert 1GB
next time use code tages, they are here to be used

and, next time, ask a question so no one needs to guess

remove the space after %d in:
Expand|Select|Wrap|Line Numbers
  1. scanf("%d ",&a);
add a comma after %d" in:
Expand|Select|Wrap|Line Numbers
  1. printf("%d %d"a,b);
Sep 23 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rafal Lagowski | last post by:
Hi all This is my small problem ... I have a program which make a long long statistic (about 2 minutes) It enough to timeout in my browser (or squid proxy of client) I want first make a...
8
by: brian.digipimp | last post by:
I turned this in for my programming fundamentals class for our second exam. I am a c++ newb, this is my first class I've taken. I got a good grade on this project I'm just wondering if there is a...
10
by: free2cric | last post by:
Hi, FOllowing is a program which is written by someone else. Its output is a wonderful poem. I dont understand how it works really. can anyone tell. thanks cric #include <stdio.h> main(int...
24
by: kalamantina | last post by:
#include "stdafx.h" #include <stdio.h> #define output( x ) printf( #x "\r\n" );fflush( stdout ) class CMyBase { public: CMyBase() { output( CMyBase() ); f(*this);
2
by: gdarian216 | last post by:
// Output: 1 -1 1 -1 ... 1 -1 // n values should be output. the program shouldout put alternating positive 1 then negative 1. It is suppose to do this for an input amount of times. ...
11
by: compsci | last post by:
Write a program that uses functions to calculate a person’s paycheck. The program should ask for a person’s first and last name, social security number (use fakes), phone number, address, hours...
7
by: new4cprog | last post by:
#include<stdio.h> void what (char *str) { if (*str) { what (str+6); putchar (*str-1); } return; void main() { char *str = “\”YeN! cEnT! pEsO! pEnCe! LeMpIrA! pUls! Ha!!\””;
12
by: broli | last post by:
#include<stdio.h> #include<stdlib.h> struct point { double x, y, z;
2
by: fury30 | last post by:
this is the program as below and now what i need to do is add the following to it but i am not able to get how to do it # futval.py # A program to compute the value of an investment # ...
1
rampraveen
by: rampraveen | last post by:
****************************************************** program for sharing memory ****************************************************** #include"stdio.h" #include"conio.h" #include"file12.c"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.