Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » console screen(the output of the code is in the expected way)
console screen [message #1550092] Tue, 06 January 2015 22:48 Go to next message
abdalrahman elsayed is currently offline abdalrahman elsayedFriend
Messages: 2
Registered: January 2015
Junior Member
#include <stdio.h>
#include <stdlib.h>

int main(void) {

char name[20], address[30];

char c;
printf("How do you feel on a scale of 1-5?");
c = getchar();

printf("Enter name: ");
scanf("%s", &name);

printf("Enter your address: ");
scanf("%s", &address);

printf("Entered Name: %s\n", name);
printf("Entered address:%s\n", address);

printf("You said you feel: ");
putchar(c);

return EXIT_SUCCESS;
}
Re: console screen [message #1564397 is a reply to message #1550092] Wed, 14 January 2015 19:33 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Are you trying to ask a question about CDT? If it's about your program not behaving as you expected, this wouldn't be the right place.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:[Help]How to just run 'run on server' ?
Next Topic:Password for download
Goto Forum:
  


Current Time: Fri Apr 26 04:49:03 GMT 2024

Powered by FUDForum. Page generated in 0.07758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top