Skip to content

Programare si Robotica pentru Copii

Lectii Online

Tipul Char

Posted bydani@media10.eu March 8, 2022March 8, 2022
#include <iostream>
#include <conio.h>

int main()
{
    char c='a';
    while (c != '\r' ) {
        c=_getch();
        std::cout << c;
    }
}
#include <iostream>
#include <conio.h>

int main()
{
    char c='a';
    int s = 0;
    while (c != '\r' ) {
        c=_getch();
        s += c;
        std::cout << c;
    }
    std::cout << s;
}
Posted bydani@media10.euMarch 8, 2022March 8, 2022Posted inIntroduction

Post navigation

Previous Post Previous post:
Conversia unui numar din baza 10 in baza 16
Next Post Next post:
Scratch
Programare si Robotica pentru Copii, Proudly powered by WordPress.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok